﻿namespace Sidvall.LogManager.Data.ConfigModel
{
    public sealed partial class GenericEntityFacade : global::Sidvall.LogManager.Data.ConfigModel.EntityFacadeBase
    {
        #region Public Members

        #region ServerConnectionManager

        private global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.ServerConnectionManager<global::Sidvall.LogManager.Data.IServerConnection, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IServerConnection>> _ServerConnectionManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.ServerConnectionManager<global::Sidvall.LogManager.Data.IServerConnection, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IServerConnection>> ServerConnectionManager
        {
            get
            {
                return _ServerConnectionManager;
            }
            private set
            {
                _ServerConnectionManager = value;
            }
        }

        #endregion
        #region UserConfigurationManager

        private global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.LogManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IUserConfiguration>> _UserConfigurationManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.LogManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IUserConfiguration>> UserConfigurationManager
        {
            get
            {
                return _UserConfigurationManager;
            }
            private set
            {
                _UserConfigurationManager = value;
            }
        }

        #endregion
        #region LogContextManager

        private global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.LogContextManager<global::Sidvall.LogManager.Data.ILogContext, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.ILogContext>> _LogContextManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.LogContextManager<global::Sidvall.LogManager.Data.ILogContext, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.ILogContext>> LogContextManager
        {
            get
            {
                return _LogContextManager;
            }
            private set
            {
                _LogContextManager = value;
            }
        }

        #endregion
        
        #endregion
        #region Helper Members

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
        private void Init()
        {
            this.ServerConnectionManager = new global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.ServerConnectionManager<global::Sidvall.LogManager.Data.IServerConnection, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IServerConnection>>(this);
            this.UserConfigurationManager = new global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.LogManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.IUserConfiguration>>(this);
            this.LogContextManager = new global::Sidvall.LogManager.Data.ConfigModel.EntityManagers.LogContextManager<global::Sidvall.LogManager.Data.ILogContext, Sidvall.Data.IDataRowProvider<global::Sidvall.LogManager.Data.ILogContext>>(this);
        }

        #endregion
        #region Constructors

        public GenericEntityFacade(global::Sidvall.Data.IResourceFactory resourceFactory)
            : base(resourceFactory)
        {
            Init();
        }
        public GenericEntityFacade(global::Sidvall.LogManager.Data.ConfigModel.IEntityFacadeManager entityFacadeManager)
            : base(entityFacadeManager)
        {
            Init();
        }

        #endregion
    }
}